package com.gtvtv.sparkdesksdk;

import com.gtvtv.sparkdesksdk.client.SparkDeskClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("speakdesk")
@Data
@ComponentScan
public class SparkDeskConfig {
    
    private String appid;
    private String apiSecret;
    private String apiKey;
    
    @Bean
    public SparkDeskClient sparkDeskClient(){
        return new SparkDeskClient(appid,apiKey,apiSecret);
    }
}
